package y24.m3;

import java.util.Scanner;

public class Test13 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String num = scanner.nextLine();
        StringBuffer sum = new StringBuffer();
        int l = num.length();
        for (int i = 0; i < l; i++) {
            sum.append(num.charAt(i));
        }
        if (num.equals(String.valueOf(sum))){
            System.out.println("这个数是一个回文数");
        }else {
            System.out.println("这个数不是一个回文数");
        }
        System.out.println("这是一个" + l + "位数");
    }
}
